home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / CDLOGMenuBar / ReadMe < prev    next >
Encoding:
Text File  |  1996-04-02  |  787 b   |  20 lines  |  [TEXT/CWIE]

  1. Enclosed is the source code to a dialog(window) menubar object.
  2. Using the PPOB for Constructor you can add menubars to your
  3. window by simply creating MBARs with ResEdit, drawing them in
  4. Constructor and assigning the MBAR IDs to the usercon
  5. of the PPOB menubar object. (I hope that makes sense :-).
  6.  
  7. When a menu item is selected msg_DLOGMenuBarSelection is
  8. broadcast with ioparam pointing to a long containing the
  9. return value of PopupMenuSelect (menuID/item).
  10.  
  11. The code detects if the menubar is too close to the bottom of
  12. the screen to pop the menu down, and pops the menu up above
  13. the menubar.
  14.  
  15. There is rudimentary code for manipulating the installed
  16. menubar, but, it's not done, or tested... I've simply
  17. created MBARs and used them, as is.
  18.  
  19. Tom Kimpton - tom@jlc.com, tom@itsnet.com
  20.